import 'package:get/get.dart';
import 'package:laos_mall/common/style/extension_util.dart';
import 'package:laos_mall/common/utils/storage_util.dart';

class Config {
  static RxString symbol = "\$".obs;

  static List<LabelValue> languages = [
    LabelValue(label: "LAO  -  LO", value: "lo_LA"),
    LabelValue(label: "中文 - ZH", value: "zh_CN"),
    LabelValue(label: "ENGLISH - EN", value: "en_US"),
  ];

  // static final currencies = ["฿ - THB", "₭ - LAK", "¥ - CNY"];
  static final currencies = [
    LabelValue(label: "฿ - THB", value: "฿"),
    LabelValue(label: "₭ - LAK", value: "₭"),
    LabelValue(label: "¥ - CNY", value: "¥"),
  ];

  static RxString currentLanguage =
      (StorageUtils().getLanguage() ?? "en_US").obs;
  static RxString currentCurrency =
      (StorageUtils().getCurrency() ?? "฿ - THB").obs;


  static final httpHeader = {
    "x-locale-code" : currentLanguage.value.split("_").first,
  };
}
